#ifndef _MOTOR_H_
#define _MOTOR_H_

#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "ultrasonic.h"

//extern struct gpio_desc gpio_val[6];
//extern struct gpio_desc gpios;
//extern char gpio_num_motor[6];
extern char buff4_1[BUFFSIZE];
extern char buff4_3[BUFFSIZE];
extern char buff4_11[BUFFSIZE];
extern char buff5_12[BUFFSIZE];
extern char buff5_13[BUFFSIZE];
extern char buff5_14[BUFFSIZE];
//extern char pptr_motor[128];

//电机初始化
extern void motor_init (void);
//电机正转
extern void motor_r (void);
//电机反转
extern void motor_l (void);

#endif
